Skip to content

Add Consumer API OpenID4VP verifier site - #1536

Open
tnotheis wants to merge 16 commits into
mainfrom
feat/openid4vp-verifier-site
Open

Add Consumer API OpenID4VP verifier site#1536
tnotheis wants to merge 16 commits into
mainfrom
feat/openid4vp-verifier-site

Conversation

@tnotheis

@tnotheis tnotheis commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • extend the existing Consumer API /r/{referenceId} onboarding page with an embedded mobile-first OpenID4VP verifier
  • render the verifier markup in AppOnboarding.cshtml; the TypeScript bundle now only controls existing DOM nodes and performs browser-only loading, decryption, validation, and state updates
  • parse the NMSHD reference hash, fetch Token/RelationshipTemplate content, decrypt XCHACHA20_POLY1305 token content with @nmshd/crypto, and fall back to the previous onboarding flow when the content is not a VP token
  • validate TokenContentVerifiablePresentation.value with the existing Credo-based verifier and render loading/valid/invalid/closed states without a mock app/phone shell
  • extract displayed credential values from the Verifiable Presentation only; missing values are omitted instead of being replaced with sample/default credential data
  • build Vite output into OpenId4VpVerifierSite/dist and let the Consumer API MSBuild target copy it into wwwroot/openid4vp-verifier at local build time; generated wwwroot assets are no longer committed
  • build verifier assets in a separate Docker Node stage and copy them into the .NET build stage, so the DHI .NET SDK image does not need npm

Validation

  • npm run typecheck
  • npm run build
  • NUGET_PACKAGES=/Users/tnotheis/Documents/Codex/2026-09-03/e/work/.nuget/packages NUGET_HTTP_CACHE_PATH=/Users/tnotheis/Documents/Codex/2026-09-03/e/work/.nuget/http-cache dotnet build Applications/ConsumerApi/src/ConsumerApi.csproj --no-restore
  • NUGET_PACKAGES=/Users/tnotheis/Documents/Codex/2026-09-03/e/work/.nuget/packages NUGET_HTTP_CACHE_PATH=/Users/tnotheis/Documents/Codex/2026-09-03/e/work/.nuget/http-cache dotnet build Applications/ConsumerApi/test/ConsumerApi.Tests.Integration/ConsumerApi.Tests.Integration.csproj --no-restore
  • confirmed generated OpenID4VP assets are present in the Consumer API static web assets manifest
  • docker build --target build-env -f Applications/ConsumerApi/src/Dockerfile .
  • docker build -f Applications/ConsumerApi/src/Dockerfile .

Notes

  • For this first version only reference algorithm 3 / XCHACHA20_POLY1305 is handled.
  • Credential status checks remain disabled for the minimal verifier.
  • The Vite build warnings about node:fs externalization and direct eval come from transitive crypto/Credo dependencies.
  • Local targeted MTP test execution starts the integration test assembly but hangs without producing a result in this environment; the integration test project itself builds successfully.

@tnotheis tnotheis added the enhancement New feature or request label Sep 3, 2026
@tnotheis
tnotheis force-pushed the feat/openid4vp-verifier-site branch from 63b3d48 to 3e8d6db Compare September 7, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant